package cn.cvs.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@RequestMapping("/hi")
@Controller
public class HiController {
    @RequestMapping(value = "/hi")
    public String hi(){
        return "hi";
    }

    @RequestMapping("/show")
    public String show(Model model,@RequestParam String account){
        model.addAttribute("account",account);
        System.out.println(account);
        return "show";
    }
}
